<template>
  <div>
    <el-form :model="form">
        <el-form-item label="体重" :label-width="formLabelWidth">
          <el-input v-model="form.weight" ></el-input>
        </el-form-item>
        <el-form-item label="血糖" :label-width="formLabelWidth">
          <el-input v-model="form.bloodSugar"></el-input>
        </el-form-item>
        <el-form-item label="血压" :label-width="formLabelWidth">
          <el-input v-model="form.bloodPressure" ></el-input>
        </el-form-item>
        <el-form-item label="心率" :label-width="formLabelWidth">
          <el-input v-model="form.heartRate" ></el-input>
        </el-form-item>
    </el-form>
    <el-button type="primary" @click="saveDiagnosis">提交</el-button>
      
  </div>
</template>

<script>
export default {
  data(){
    return{
      form: {
           weight: "",
           bloodSugar: "",
           bloodPressure: "",
           heartRate: "",
           pid:1
      }
    }
  },
  methods:{
    saveDiagnosis(){
     this.$axios.post("patient-serv/insert/",this.form)
          .then((response)=>{
           let r=response.data;
            if(r.code==200){
              this.$message({
                message:"新增成功",
                type:"success",  
              });
              this.form = {}        
            }
          })
        }
  }

}
</script>

<style>

</style>